package com.example.springbootprodb.dao;

import com.example.springbootprodb.enity.Dept;
import com.example.springbootprodb.service.impl.DeptServiceImpl;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface DeptDao {

    @Select("select*from dept")
    List<Dept> selectDeptDao();

    @Delete("delete from dept where id=#{id}")
    void delDeptDao(Integer id);
}
